<!doctype html>
<html lang="en">

<head>
    <title>Malfunction, Failure&Defect Report</title>
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=0.3, maximum-scale=1.0, user-scalable=yes,shrink-to-fit=no">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <link rel="shortcut icon" type="image/x-ico" href="favicon.ico" />
    <!-- Bootstrap CSS -->
    <link rel="stylesheet" href="en/css/bootstrap.min.css">
    <link rel="stylesheet" href="en/css/all.min.css">
    <link rel="stylesheet" href="en/css/style.min.css">
    <link rel="stylesheet" href="#(CPATH)/static/components/jquery-file-upload/css/jquery.fileupload.css">
    <style>
        .myPanel {
            font-size: 25px;
            color: #ccc;
            text-align: center;
        }
        .red{
            color: #f00;
        }
    </style>
    <script src="js/jquery-3.3.1.min.js"></script>
    <script src="#(CPATH)/static/components/jquery-file-upload/js/vendor/jquery.ui.widget.js"></script>
    <script src="#(CPATH)/static/components/jquery-file-upload/js/jquery.iframe-transport.js"></script>
    <script src="#(CPATH)/static/components/jquery-file-upload/js/jquery.fileupload.js"></script>
    <link rel="stylesheet" href="layui/css/layui.css" media="all">
    <script src="layui/layui.js"></script>
    <script src="js/vue.min.js"></script>
</head>

<body>
<div class="flex-container">
   <nav class="nav top-nav">
            <div class="container">
                <div class="row">
                   #include("language.html")
                </div>
            </div>
        </nav>
        <header class="masthead mb-auto">
            <div class="inner logo">
                <div class="webtitle">
                    <div class="title-h3 masthead-brand">国产飞机运营伙伴当局信息系统</div>
                    <div class="title-h4">Platform among CAAC MOU Partners for China-Made Aircraft</div>
                </div>
                #include("mainnav_en.html")
                <div class="search-form">
                    #include("searchhead.html")
                </div>
            </div>
            #include("menu_en.html")
        </header>
    <div class="container">
        <div class="page-title">Malfunction, Failure&Defect Report<!--Service Difficulty Report--></div>
        <div class="row">
            <div class="col-3 left-bar">
                #include("srd_menu_en.html")
            </div>
            <div class="col-9 right-list">
                
                <form name="form" onsubmit="return submitdata();">
                <fieldset>
                    <h4 class="title-bar">1. Submitter Information</h4>
                    <table class="table r">
                        <tr>
                            <td>
                                <label>(a) Unique Control # <span class="red">*</span></label>
                            </td>
                            <td>
                                <input required  id="单号" type="text" class="form-control" maxlength="17" value="#(OddNumbers ??)" disabled title="A unique control number up to 17 alpha-numeric characters to be used as a reference to a particular SDR" />
                            </td>
                            <td>
                                <label>(b) Difficulty Date<span class="red">*</span></label>
                            </td>
                            <td>
                                <input required  id="故障失效缺陷发生日期-1" type="text" class="form-control" maxlength="10" placeholder="(yyyy-mm-dd)" data-toggle="tooltip" data-placement="bottom" title="Date on which the service difficulty was discovered.Formatted as yy/mm/dd" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <label>(c) Registration #<span class="red">*</span></label>
                            </td>
                            <td>
                                <input required  id="注册号-1" type="text" class="form-control" maxlength="5" data-toggle="tooltip" data-placement="bottom" title="The aircraft registery number. Enter the country code followed by as much of the registration number as possible, and for military aircraft just enter as much of the tail number as possible." />
                            </td>
                            <td>
                                <label>(d) Submitter Type</label>
                            </td>
                            <td>
                                <select class="custom-select" id="提交者类型-1">
                                    <option></option>
                                    <option value="A-CARRIER PART 121">A-CARRIER PART 121</option>
                                    <option value="C-OPERATOR PART 91">C-OPERATOR PART 91</option>
                                    <option value="E-CARRIER PART 135">E-CARRIER PART 135</option>
                                    <option value="F-MANUFACTURER">F-MANUFACTURER</option>
                                    <option value="G-CAAC">G-CAAC</option>
                                    <option value="H-OTHER">H-OTHER</option>
                                    <option value="M-MILITARY">M-MILITARY</option>
                                    <option value="S-LIGHT SPORT ACFT">S-LIGHT SPORT ACFT</option>
                                </select>
                            </td>
                        </tr>
                    </table>
                </fieldset>
                <fieldset>
                    <h4 class="title-bar">2. Codes</h4>
                    <table class="table r">
                        <tr>
                            <td>
                                <label>(a) Operator Name<span class="red">*</span></label>
                            </td>
                            <td>
                                <input required id="运营人名称-2" type="text" class="form-control" maxlength="4" data-toggle="tooltip" data-placement="bottom" title="The name of aircraft  operator." />
                            </td>
                            <td>
                                <label>(b) Operator Type</label>
                            </td>
                            <td>
                                <select class="custom-select" id="运营人类型-2">
                                    <option value="">--Choose Type--</option>
                                    <option selected="selected" value="General Aviation">General Aviation</option>
    								<option value="Air Carrier">Air Carrier</option>
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <label>(c) JASC/ATA Code<span class="red">*</span></label>
                            </td>
                            <td>
                                <select required id="JASCATA代码-2" class="custom-select" data-toggle="tooltip" data-placement="bottom" title="The Joint Aircraft System/Component(JASC)code;formerly known as ATA codes" style="width:200px">
                                    <option v-for="item in list" v-text="item" :value="item"></option>
                                </select>
                            </td>
                            <td></td>
                            <td></td>
                        </tr>
                        <tr>
                            <td>
                                <label>(d) Stage of Operation<span class="red">*</span></label>
                            </td>
                            <td>
                                <select required id="发生阶段-2" class="custom-select" data-toggle="tooltip" data-placement="bottom" title="A code describing the stage of operation at which the difficulty was discovered">
                                    <option></option>
                                    <option value="AA-AIR AMBULANCE">AA-AIR AMBULANCE </option>
                                    <option value="AB-AEROBATIC">AB-AEROBATIC </option>
                                    <option value="AG-AGRICULTURE">AG-AGRICULTURE </option>
                                    <option value="AP-APPROACH">AP-APPROACH </option>
                                    <option value="CL-CLIMB">CL-CLIMB </option>
                                    <option value="CR-CRUISE">CR-CRUISE </option>
                                    <option value="DE-DESCENT">DE-DESCENT </option>
    								<option value="EX-EXTERNAL LOAD">EX-EXTERNAL LOAD </option>
    								<option value="FF-FIRE FIGHTING">FF-FIRE FIGHTING </option>
    								<option value="HO-HOVERING">HO-HOVERING </option>
    								<option value="IN-INSP/MAINT">IN-INSP/MAINT </option>
    								<option value="LD-LANDING">LD-LANDING </option>
    								<option value="MS-MAPPING/SURVEY">MS-MAPPING/SURVEY </option>
    								<option value="NR-NOT REPORTED">NR-NOT REPORTED </option>
    								<option value="TO-TAKEOFF">TO-TAKEOFF </option>
    								<option value="TX-TAXI/GRND HDL">TX-TAXI/GRND HDL </option>
    								<option value="UK-UNKNOWN">UK-UNKNOWN </option>
                                </select>
                            </td>
                            <td>
                                <label>(e) How Discovered<span class="red">*</span></label>
                            </td>
                            <td>
                                <select required id="发现途径-2" class="custom-select" data-toggle="tooltip" data-placement="bottom" title="A code indicating how the difficulty was discovered.">
                                    <option></option>
                                    <option value="9-Unknown">9-Unknown </option>
    								<option value="B-Boroscope">B-Boroscope </option>
    								<option value="C-Functional Check">C-Functional Check </option>
    								<option value="D-Dye Penetrant">D-Dye Penetrant </option>
    								<option value="E-Eddy Current">E-Eddy Current </option>
    								<option value="L-Light Source">L-Light Source </option>
    								<option value="M-Magnetic Particle">M-Magnetic Particle </option>
    								<option value="O-Other">O-Other </option>
    								<option value="T-Thermal">T-Thermal </option>
    								<option value="U-Ultrasonic">U-Ultrasonic </option>
    								<option value="V-Visual">V-Visual </option>
    								<option value="W-Magnified Visual">W-Magnified Visual </option>
    								<option value="X-X-Ray">X-X-Ray </option>
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <label>(f) Nature of Condition<span class="red">*</span></label>
                            </td>
                            <td>
                                <select required id="现象-2" class="custom-select" data-toggle="tooltip" data-placement="bottom" title="A code describing the nature of the condition associated with the difficulty (A~C)">
                                    <option></option>
                                    <option value="A-FLAME/FIRE">A-FLAME/FIRE </option>
    								<option value="B-SMOKE/FUMES/ODORS/SPARKS">B-SMOKE/FUMES/ODORS/SPARKS </option>
    								<option value="C-F.O.D.">C-F.O.D. </option>
    								<option value="D-INFLIGHT SEPARATION">D-INFLIGHT SEPARATION </option>
    								<option value="E-VIBRATION/BUFFET">E-VIBRATION/BUFFET </option>
    								<option value="F-FLT CONT AFFECTED">F-FLT CONT AFFECTED </option>
    								<option value="G-MULTIPLE FAILURE">G-MULTIPLE FAILURE </option>
    								<option value="H-ELECT. POWER LOSS-50 PC">H-ELECT. POWER LOSS-50 PC </option>
    								<option value="I-FLT. ATTITUDE INST.">I-FLT. ATTITUDE INST. </option>
    								<option value="J-WARNING INDICATION">J-WARNING INDICATION </option>
    								<option value="K-FLUID LOSS">K-FLUID LOSS </option>
    								<option value="L-NO TEST">L-NO TEST </option>
    								<option value="M-OVER TEMP">M-OVER TEMP </option>
    								<option value="N-FALSE WARNING">N-FALSE WARNING </option>
    								<option value="O-OTHER">O-OTHER </option>
    								<option value="P-NO WARNING INDICATION">P-NO WARNING INDICATION </option>
    								<option value="R-PARTIAL RPM/PWR LOSS">R-PARTIAL RPM/PWR LOSS </option>
    								<option value="S-AFFECT SYSTEMS">S-AFFECT SYSTEMS </option>
    								<option value="T-ENGINE CASE PENETRATION">T-ENGINE CASE PENETRATION </option>
    								<option value="W-INADEQUATE Q C">W-INADEQUATE Q C </option>
    								<option value="X-ENGINE FLAMEOUT">X-ENGINE FLAMEOUT </option>
    								<option value="Y-ENGINE STOPPAGE">Y-ENGINE STOPPAGE </option>
    								<option value="Z-SIGNIFICANT FAILURE REPORT">Z-SIGNIFICANT FAILURE REPORT </option>
                                </select>
                                <br />
                                <select required class="custom-select" id="现象1-2">
                                    <option></option>
                                    <option value="A-FLAME/FIRE">A-FLAME/FIRE </option>
    								<option value="B-SMOKE/FUMES/ODORS/SPARKS">B-SMOKE/FUMES/ODORS/SPARKS </option>
    								<option value="C-F.O.D.">C-F.O.D. </option>
    								<option value="D-INFLIGHT SEPARATION">D-INFLIGHT SEPARATION </option>
    								<option value="E-VIBRATION/BUFFET">E-VIBRATION/BUFFET </option>
    								<option value="F-FLT CONT AFFECTED">F-FLT CONT AFFECTED </option>
    								<option value="G-MULTIPLE FAILURE">G-MULTIPLE FAILURE </option>
    								<option value="H-ELECT. POWER LOSS-50 PC">H-ELECT. POWER LOSS-50 PC </option>
    								<option value="I-FLT. ATTITUDE INST.">I-FLT. ATTITUDE INST. </option>
    								<option value="J-WARNING INDICATION">J-WARNING INDICATION </option>
    								<option value="K-FLUID LOSS">K-FLUID LOSS </option>
    								<option value="L-NO TEST">L-NO TEST </option>
    								<option value="M-OVER TEMP">M-OVER TEMP </option>
    								<option value="N-FALSE WARNING">N-FALSE WARNING </option>
    								<option value="O-OTHER">O-OTHER </option>
    								<option value="P-NO WARNING INDICATION">P-NO WARNING INDICATION </option>
    								<option value="R-PARTIAL RPM/PWR LOSS">R-PARTIAL RPM/PWR LOSS </option>
    								<option value="S-AFFECT SYSTEMS">S-AFFECT SYSTEMS </option>
    								<option value="T-ENGINE CASE PENETRATION">T-ENGINE CASE PENETRATION </option>
    								<option value="W-INADEQUATE Q C">W-INADEQUATE Q C </option>
    								<option value="X-ENGINE FLAMEOUT">X-ENGINE FLAMEOUT </option>
    								<option value="Y-ENGINE STOPPAGE">Y-ENGINE STOPPAGE </option>
    								<option value="Z-SIGNIFICANT FAILURE REPORT">Z-SIGNIFICANT FAILURE REPORT </option>
                                </select>
                                <br />
                                <select required class="custom-select" id="现象2-2">
                                    <option></option>
                                    <option value="A-FLAME/FIRE">A-FLAME/FIRE </option>
    								<option value="B-SMOKE/FUMES/ODORS/SPARKS">B-SMOKE/FUMES/ODORS/SPARKS </option>
    								<option value="C-F.O.D.">C-F.O.D. </option>
    								<option value="D-INFLIGHT SEPARATION">D-INFLIGHT SEPARATION </option>
    								<option value="E-VIBRATION/BUFFET">E-VIBRATION/BUFFET </option>
    								<option value="F-FLT CONT AFFECTED">F-FLT CONT AFFECTED </option>
    								<option value="G-MULTIPLE FAILURE">G-MULTIPLE FAILURE </option>
    								<option value="H-ELECT. POWER LOSS-50 PC">H-ELECT. POWER LOSS-50 PC </option>
    								<option value="I-FLT. ATTITUDE INST.">I-FLT. ATTITUDE INST. </option>
    								<option value="J-WARNING INDICATION">J-WARNING INDICATION </option>
    								<option value="K-FLUID LOSS">K-FLUID LOSS </option>
    								<option value="L-NO TEST">L-NO TEST </option>
    								<option value="M-OVER TEMP">M-OVER TEMP </option>
    								<option value="N-FALSE WARNING">N-FALSE WARNING </option>
    								<option value="O-OTHER">O-OTHER </option>
    								<option value="P-NO WARNING INDICATION">P-NO WARNING INDICATION </option>
    								<option value="R-PARTIAL RPM/PWR LOSS">R-PARTIAL RPM/PWR LOSS </option>
    								<option value="S-AFFECT SYSTEMS">S-AFFECT SYSTEMS </option>
    								<option value="T-ENGINE CASE PENETRATION">T-ENGINE CASE PENETRATION </option>
    								<option value="W-INADEQUATE Q C">W-INADEQUATE Q C </option>
    								<option value="X-ENGINE FLAMEOUT">X-ENGINE FLAMEOUT </option>
    								<option value="Y-ENGINE STOPPAGE">Y-ENGINE STOPPAGE </option>
    								<option value="Z-SIGNIFICANT FAILURE REPORT">Z-SIGNIFICANT FAILURE REPORT </option>
                                </select>
                            </td>
                            <td>
                                <label>(g) Precautionary Procedures<span class="red">*</span></label>
                            </td>
                            <td>
                                <select required id="预防措施-2" class="custom-select" title="A code describing the actions taken in precaution to the discovert of the reported difficulty (A~D)">
                                    <option></option>
                                    <option value="A-UNSCHED LANDING-O2 MASK DEPLOYED">A-UNSCHED LANDING </option>
    								<option value="B-EMER. DESCENT">B-EMER. DESCENT </option>
    								<option value="C-ABORTED TAKEOFF-ACTIVATE FIRE EXT.">C-ABORTED TAKEOFF </option>
    								<option value="D-RETURN TO BLOCK-NONE">D-RETURN TO BLOCK </option>
    								<option value="E-ENGINE SHUTDOWN">E-ENGINE SHUTDOWN </option>
    								<option value="F-ACTIVATE FIRE EXT.">F-ACTIVATE FIRE EXT. </option>
    								<option value="G-O2 MASK DEPLOYED">G-O2 MASK DEPLOYED </option>
    								<option value="H-DEACTIVATE SYST/CIRCUITS">H-DEACTIVATE SYST/CIRCUITS </option>
    								<option value="I-CABIN DEPRESSURIZATION">I-CABIN DEPRESSURIZATION </option>
    								<option value="J-DUMP FUEL-ABORTED APPROACH">J-DUMP FUEL </option>
    								<option value="K-NONE">K-NONE </option>
    								<option value="L-ABORTED APPROACH">L-ABORTED APPROACH </option>
    								<option value="O-OTHER-AUTOROTATION">O-OTHER </option>
    								<option value="R-AUTOROTATION">R-AUTOROTATION </option>
                                </select>
                                <br />
                                <select required class="custom-select" id="预防措施1-2">
                                    <option></option>
                                    <option value="A-UNSCHED LANDING-O2 MASK DEPLOYED">A-UNSCHED LANDING </option>
    								<option value="B-EMER. DESCENT">B-EMER. DESCENT </option>
    								<option value="C-ABORTED TAKEOFF-ACTIVATE FIRE EXT.">C-ABORTED TAKEOFF </option>
    								<option value="D-RETURN TO BLOCK-NONE">D-RETURN TO BLOCK </option>
    								<option value="E-ENGINE SHUTDOWN">E-ENGINE SHUTDOWN </option>
    								<option value="F-ACTIVATE FIRE EXT.">F-ACTIVATE FIRE EXT. </option>
    								<option value="G-O2 MASK DEPLOYED">G-O2 MASK DEPLOYED </option>
    								<option value="H-DEACTIVATE SYST/CIRCUITS">H-DEACTIVATE SYST/CIRCUITS </option>
    								<option value="I-CABIN DEPRESSURIZATION">I-CABIN DEPRESSURIZATION </option>
    								<option value="J-DUMP FUEL-ABORTED APPROACH">J-DUMP FUEL </option>
    								<option value="K-NONE">K-NONE </option>
    								<option value="L-ABORTED APPROACH">L-ABORTED APPROACH </option>
    								<option value="O-OTHER-AUTOROTATION">O-OTHER </option>
    								<option value="R-AUTOROTATION">R-AUTOROTATION </option>
                                </select>
                                <br />
                                <select required class="custom-select" id="预防措施2-2">
                                    <option></option>
                                    <option value="A-UNSCHED LANDING-O2 MASK DEPLOYED">A-UNSCHED LANDING </option>
    								<option value="B-EMER. DESCENT">B-EMER. DESCENT </option>
    								<option value="C-ABORTED TAKEOFF-ACTIVATE FIRE EXT.">C-ABORTED TAKEOFF </option>
    								<option value="D-RETURN TO BLOCK-NONE">D-RETURN TO BLOCK </option>
    								<option value="E-ENGINE SHUTDOWN">E-ENGINE SHUTDOWN </option>
    								<option value="F-ACTIVATE FIRE EXT.">F-ACTIVATE FIRE EXT. </option>
    								<option value="G-O2 MASK DEPLOYED">G-O2 MASK DEPLOYED </option>
    								<option value="H-DEACTIVATE SYST/CIRCUITS">H-DEACTIVATE SYST/CIRCUITS </option>
    								<option value="I-CABIN DEPRESSURIZATION">I-CABIN DEPRESSURIZATION </option>
    								<option value="J-DUMP FUEL-ABORTED APPROACH">J-DUMP FUEL </option>
    								<option value="K-NONE">K-NONE </option>
    								<option value="L-ABORTED APPROACH">L-ABORTED APPROACH </option>
    								<option value="O-OTHER-AUTOROTATION">O-OTHER </option>
    								<option value="R-AUTOROTATION">R-AUTOROTATION </option>
                                </select>
                                <br />
                                <select required class="custom-select" id="预防措施3-2">
                                    <option></option>
                                    <option value="A-UNSCHED LANDING-O2 MASK DEPLOYED">A-UNSCHED LANDING </option>
    								<option value="B-EMER. DESCENT">B-EMER. DESCENT </option>
    								<option value="C-ABORTED TAKEOFF-ACTIVATE FIRE EXT.">C-ABORTED TAKEOFF </option>
    								<option value="D-RETURN TO BLOCK-NONE">D-RETURN TO BLOCK </option>
    								<option value="E-ENGINE SHUTDOWN">E-ENGINE SHUTDOWN </option>
    								<option value="F-ACTIVATE FIRE EXT.">F-ACTIVATE FIRE EXT. </option>
    								<option value="G-O2 MASK DEPLOYED">G-O2 MASK DEPLOYED </option>
    								<option value="H-DEACTIVATE SYST/CIRCUITS">H-DEACTIVATE SYST/CIRCUITS </option>
    								<option value="I-CABIN DEPRESSURIZATION">I-CABIN DEPRESSURIZATION </option>
    								<option value="J-DUMP FUEL-ABORTED APPROACH">J-DUMP FUEL </option>
    								<option value="K-NONE">K-NONE </option>
    								<option value="L-ABORTED APPROACH">L-ABORTED APPROACH </option>
    								<option value="O-OTHER-AUTOROTATION">O-OTHER </option>
    								<option value="R-AUTOROTATION">R-AUTOROTATION </option>
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <label>(h) Flight Number<span class="red">*</span></label>
                            </td>
                            <td>
                                <input required  id="航班号-2" type="text" class="form-control" maxlength="10" data-toggle="tooltip" data-placement="bottom" title="The flight number on which the service difficulty occurred." />
                            </td>
                            <td>(i) Difficulty Place<span class="red">*</span>
                            </td>
                            <td><input required  id="困难的地方" type="text" class="form-control" maxlength="10" data-toggle="tooltip" data-placement="bottom" title="The place where the service difficulty occurred or was discovered for the first time." />
                            </td>
                        </tr>
                    </table>
                </fieldset>
                <fieldset>
                    <h4 class="title-bar">3. Major Equipment Identity</h4>
                    <table class="table">
                        <tr>
                            <td></td>
                            <td><label>Manufacturer<span class="red">*</span></label></td>
                            <td><label>Model<span class="red">*</span></label></td>
                            <td><label>Serial Number<span class="red">*</span></label></td>
                            <td><label>Total Time&nbsp;&nbsp;<span class="red">*</span><span class="small">(hours)&nbsp;&nbsp;</span></label></td>
                            <td><label>Total Cycles&nbsp;&nbsp;&nbsp;<span class="red">*</span></label></td>
                        </tr>
                        <tr>
                            <td>
                                <label>(a) Aircraft</label>
                            </td>
                            <input required  type="hidden" id = "飞机-3" value="飞机">
                            <td>
                                <input required  id="飞机制造厂家-3" type="text" class="form-control" maxlength="15" data-toggle="tooltip" data-placement="bottom" title="The manufacturer of the aircraft" />
                            </td>
                            <td>
                                <input required  id="飞机型号-3" type="text" class="form-control" maxlength="20" data-toggle="tooltip" data-placement="bottom" title="The mode of the aircraft"/>
                            </td>
                            <td>
                                <input required  id="飞机序列号-3" type="text" class="form-control" maxlength="12" data-toggle="tooltip" data-placement="bottom" title="The Serial Number of the aircraft"/>
                            </td>
                            <td>
                                <input required  id="飞机总时间-3" type="text" class="form-control" maxlength="12" data-toggle="tooltip" data-placement="bottom" title="The Total Time of the aircraft in hours"/>
                            </td>
                            <td>
                                <input required  id="飞机总循环-3" type="text" class="form-control" maxlength="12" data-toggle="tooltip" data-placement="bottom" title="The Total number of cycles for the aircraft"/>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <label>(b) Engine</label>
                            </td>
                            <input required  type="hidden" id = "发动机-3" value="发动机">
                            <td>
                                <input required  id="发动机制造厂家-3" type="text" class="form-control" maxlength="15" data-toggle="tooltip" data-placement="bottom" title="The manufacturer of the Engine"/>
                            </td>
                            <td>
                                <input required  id="发动机型号-3" type="text" class="form-control" maxlength="20" data-toggle="tooltip" data-placement="bottom" title="The mode of the Engine"/>
                            </td>
                            <td>
                                <input required  id="发动机序列号-3" type="text" class="form-control" maxlength="12" data-toggle="tooltip" data-placement="bottom" title="The Serial Number of the Engine"/>
                            </td>
                            <td>
                                <input required  id="发动机总时间-3" type="text" class="form-control" maxlength="12" data-toggle="tooltip" data-placement="bottom" title="The Total Time of the Engine in hours"/>
                            </td>
                            <td>
                                <input required  id="发动机总循环-3" type="text" class="form-control" maxlength="12" data-toggle="tooltip" data-placement="bottom" title="The Total number of cycles for the Engine"/>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <label>(c) Propeller</label>
                            </td>
                            <input required  type="hidden" id = "螺旋桨-3" value="螺旋桨">
                            <td>
                                <input required  id="螺旋桨制造厂家-3" type="text" class="form-control" maxlength="15" data-toggle="tooltip" data-placement="bottom" title="The manufacturer of the Propeller"/>
                            </td>
                            <td>
                                <input required  id="螺旋桨型号-3" type="text" class="form-control" maxlength="20" data-toggle="tooltip" data-placement="bottom" title="The mode of the Propeller"/>
                            </td>
                            <td>
                                <input required  id="螺旋桨序列号-3" type="text" class="form-control" maxlength="12" data-toggle="tooltip" data-placement="bottom" title="The Serial Number of the Propeller"/>
                            </td>
                            <td>
                                <input required  id="螺旋桨总时间-3" type="text" class="form-control" maxlength="12" data-toggle="tooltip" data-placement="bottom" title="The Total Time of the Propeller in hours"/>
                            </td>
                            <td>
                                <input required  id="螺旋桨总循环-3" type="text" class="form-control" maxlength="12" data-toggle="tooltip" data-placement="bottom" title="The Total number of cycles for the Propeller"/>
                            </td>
                        </tr>
                    </table>
                </fieldset>
                <fieldset>
                    <h4 class="title-bar">4. Problem Description&nbsp;&nbsp;<span class="red">*</span><span class="small">(Note: Please limit your description to 1500 characters.)</span></h4>
                    <table class="table">
                        <tr>
                            <td>
                                <textarea required oninput="txtnum(this,'zs');" maxlength='1500' type="text" class="form-control" data-toggle="tooltip" data-placement="bottom" title="Used to clearly identify and describe the details of the failure/malfunction/defect. Provide any significant facts leading up to the difficulty and, if available, any corrective action. Details of the condition of the part/assembly that caused the difficulty should be included"></textarea>
                                <br>
                                <div class="form-group">
               
                                            <a id="attachments-a" href="">
                                                
                                            #if(C.get('language')=='ch')
                                                下载附件
                                            #else
                                                Download attachments
                                            #end
                                                
                                            </a>
                                        </div>
                                        <div class="form-group">
                                        <label class="col-sm-2 control-label">
                                        #if(C.get('language')=='ch')
                                            附件
                                        #else
                                            Enclosure
                                        #end
                                        </label>
                                        <input id="attachment" type="hidden"/>
                                        <div id="uploader">
                                            <span class="btn btn-block btn-primary fileinput-button" style="width: 120px">
                                                <i class="glyphicon glyphicon-plus"></i>
                                                <span>
                                                    #if(C.get('language')=='ch')
                                                        选择文件...
                                                    #else
                                                        Select File...
                                                    #end
                                                </span>
                                                <input id="cfile" type="file" name="files[]" multiple>
                                            </span>
                                            <div class="myPanel">
                                                #if(C.get('language')=='ch')
                                                    或者拖动文件到这里进行上传...
                                                #else
                                                    Or drag the file here to upload...
                                                #end
                                            </div>
                                            <div style="color: #ccc;">
                                                
                                                #if(C.get('language')=='ch')
                                                    支持所有文本文件
                                                #else
                                                    Support for all text files
                                                #end
                                                
                                            </div>
                                        </div>
                                    </div>
                            </td>
                        </tr>
                        <tr>
                            <td class="small">
                                Your description is <span style="font-weight: 600;" id="zs">0</span> characters in length.
                            </td>
                        </tr>
                    </table>
                </fieldset>
                <fieldset>
                    <h4 class="title-bar">5. Specific Part or Structure Causing Difficulty</h4>
                    <table class="table">
                        <tr>
                            <td>
                                <label>(a) Part Name<span class="red">*</span></label>
                            </td>
                            <td>
                                <label>(b) Manufacturer's Name<span class="red">*</span></label>
                            </td>
                            <td>
                                <label>(c) Part Number<span class="red">*</span></label>
                            </td>
                            <td colspan="3">
                                <label>(d) Serial Number<span class="red">*</span></label>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <input required  id="零件名称-5" type="text" class="form-control" maxlength="24" data-toggle="tooltip" data-placement="bottom" title="The part name as defined by the manufacturer"/>
    
                            </td>
                            <td>
                                <input id="生产厂家名称-5" type="text" class="form-control" maxlength="15" data-toggle="tooltip" data-placement="bottom" title="The manufacturer of the part"/>
    
                            </td>
                            <td>
                                <input required  id="件号-5" type="text" class="form-control" maxlength="24" data-toggle="tooltip" data-placement="bottom" title="The part number assigned by the manufacturer"/>
                            </td>
                            <td colspan="3">
                                <input required  id="序列号-5" type="text" class="form-control" maxlength="16" data-toggle="tooltip" data-placement="bottom" title="Serial number, assigned by the manufacturer, of the part"/>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <label>(e) Part Condition<span class="red">*</span></label>
                            </td>
                            <td>
                                <label>(f) Part/Defect Location<span class="red">*</span></label>
                            </td>
                            <td>
                                <label>Total Time (hours) <span class="red">*</span></label>
                            </td>
                            <td>
                                <label>(h) Total Cycles<span class="red">*</span></label>
                            </td>
                            <td colspan="2">
                                <label>(i) Time Since (hours)<span class="red">*</span></label>
                            </td>
                        </tr>
                        <tr valign="top">
                            <td>
                                <input required  id="零件状况-5" type="text" class="form-control" maxlength="20" data-toggle="tooltip" data-placement="bottom" title="The condition of the part; acoid generic terms such as ‘unserviceable’ or ‘repairable’"/>
                            </td>
                            <td>
                                <select id="零件缺陷位置-5" class="custom-select" data-toggle="tooltip" data-placement="bottom" title="A general defect location. When possible be specific by using the below texbox instead">
                                    <option selected="selected">--Choose Location--</option>
                                    <option value="Zone 100">Zone 100-Fuselage Lower</option>
                                    <option value="Zone 200">Zone 200-Fuselage Top</option>
                                    <option value="Zone 300">Zone 300-Stabilizers</option>
                                    <option value="Zone 400">Zone 400-Nacelles/Pylons</option>
                                    <option value="Zone 500">Zone 500-Left Wing</option>
                                    <option value="Zone 600">Zone 600-Right Wing</option>
                                    <option value="Zone 700">Zone 700-Landing Gear</option>
                                    <option value="Zone 800">Zone 800-Doors</option>
                                    <option value="Zone 900">Zone 900-Lavatories & Galleys</option>
                                </select>
                                <span><br />OR<br /></span>
                                <input id="零件缺陷位置或者-5" type="text" class="form-control" maxlength="20" data-toggle="tooltip" data-placement="bottom" title="A specifiv location describing the placement of the part on the aircraft/engine/propeller"/>
                            </td>
                            <td>
                                <input required  id="总时间-5" type="text" class="form-control" maxlength="12" data-toggle="tooltip" data-placement="bottom" title="The total time for the part in hours"/>
                            </td>
                            <td>
                                <input required  id="总循环数-5" type="text" class="form-control" maxlength="12" data-toggle="tooltip" data-placement="bottom" title="The total cycles for the part"/>
                            </td>
                            <td>
                                <input required  id="自大修修理检查总时间-5" type="text" class="form-control" maxlength="12" data-toggle="tooltip" data-placement="bottom" title="The total time the part has been in service, since its most recent overhaul/repair/inspection, in hours overhaul/repair/inspection"/>
                            </td>
                            <td>
                                <div class="form-check">
                                <input required  class="form-check-input" type="radio" name="ta" id="ta01" value="大修">
                                <label class="form-check-label" for="ta01">
                                    Overhaul
                                </label>
                                </div>
                                <div class="form-check">
                                <input required  class="form-check-input" type="radio" name="ta" id="ta02" value="修理">
                                <label class="form-check-label" for="ta02">
                                    Repair
                                </label>
                                </div>
                                <div class="form-check">
                                <input required  class="form-check-input" type="radio" name="ta" id="ta03" value="检查">
                                <label class="form-check-label" for="ta03">
                                    Inspection
                                </label>
                                </div>
                            </td>
                        </tr>
                    </table>
                </fieldset>
                <fieldset>
                    <h4 class="title-bar">6. Component/Assembly That Includes Defective Part</h4>
                    <table class="table">
                        <tr>
                            <td>
                                <label>(a) Component Name</label>
                            </td>
                            <td>
                                <label>(b) Manufacturer's Name</label>
                            </td>
                            <td>
                                <label>(c) Part Number</label>
                            </td>
                            <td>
                                <label>(d) Serial Number</label>
                            </td>
                            <td>
                                <label>(e) Model Number</label>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <input id="部件名称-6" type="text" class="form-control" maxlength="24" data-toggle="tooltip" data-placement="bottom" title="The component name as defined vy the manufacturer"/>
                            </td>
                            <td>
                                <input id="生产厂家名称-6"  type="text" class="form-control" maxlength="15" data-toggle="tooltip" data-placement="bottom" title="The manufacturer of the component"/>
                            </td>
                            <td>
                                <input id="件号-6"  type="text" class="form-control" maxlength="24" data-toggle="tooltip" data-placement="bottom" title="The component part number assigned by the manufacturer"/>
                            </td>
                            <td>
                                <input id="序列号-6"  type="text" class="form-control" maxlength="16" data-toggle="tooltip" data-placement="bottom" title="The serial number, assigned by the manufacturer, of the component"/>
                            </td>
                            <td>
                                <input id="型号-6"  type="text" class="form-control" maxlength="15" data-toggle="tooltip" data-placement="bottom" title="The model number, assigned by the manufacturer, of the component"/>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <label>(f) Location</label>
                            </td>
                            <td>
                                <label>(g) Total Time (hours)</label>
                            </td>
                            <td>
                                <label>(h) Total Cycles</label>
                            </td>
                            <td colspan="2">
                                <label>(i) Time Since (hours)</label>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <input id="位置-6"  type="text" class="form-control" maxlength="20" data-toggle="tooltip" data-placement="bottom" title="The location of the component/assembly"/>
                            </td>
                            <td>
                                <input id="总时间-6"  type="text" class="form-control" maxlength="12" data-toggle="tooltip" data-placement="bottom" title="The total time for the component in hours"/>
                            </td>
                            <td>
                                <input id="总循环数-6"  type="text" class="form-control" maxlength="12" data-toggle="tooltip" data-placement="bottom" title="The total cycles for the component"/>
                            </td>
                            <td>
                                <input id="自大修修理检查总时间-6"  type="text" class="form-control" maxlength="12" data-toggle="tooltip" data-placement="bottom" title="The total time the component has been in service, since its most recent overhaul/repair/inspection, in hours"/>
                            </td>
                            <td>
                                <div class="form-check">
                                <input class="form-check-input" type="radio"  name="tb" id="tb01" value="大修">
                                <label class="form-check-label" for="tb01">
                                    Overhaul
                                </label>
                                </div>
                                <div class="form-check">
                                <input class="form-check-input" type="radio"  name="tb" id="tb02" value="修理">
                                <label class="form-check-label" for="tb02">
                                    Repair
                                </label>
                                </div>
                                <div class="form-check">
                                <input class="form-check-input" type="radio"  name="tb" id="tb03" value="检查">
                                <label class="form-check-label" for="tb03">
                                    Inspection
                                </label>
                                </div>
                            </td>
                        </tr>
                    </table>
                </fieldset>
                <fieldset>
                    <h4 class="title-bar">7. Submitted By <span class="small">(This Information is used by the CAAC to contact you, only if additional information about the submission is needed and then is removed.)</span></h4>
                    <table class="table">
                        <tr>
                            <td>
                                <label>Name<span class="red">*</span></label>
                            </td>
                            <td>
                                <label>Telephone<span class="red">*</span></label>
                            </td>
                            <td>
                                <label>Email Address<span class="red">*</span></label>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <input required  id="姓名-7" type="text" class="form-control" maxlength="50" data-toggle="tooltip" data-placement="bottom" title="Name of person doing submission."/>
                            </td>
                            <td>
                                <input required  id="电话-7" type="text" class="form-control" maxlength="30" data-toggle="tooltip" data-placement="bottom" title="Phone number to be used by CAAC quality assurance to assist in verying information about the submission"/>
                            </td>
                            <td>
                                <input required  id="电子邮箱-7" type="text" class="form-control" maxlength="50" data-toggle="tooltip" data-placement="bottom" title="Email address to be used by CAAC quality assurance to assist in verying information about the submission"/>
                            </td>
                        </tr>
                    </table>
                </fieldset>
    
            <div class="row text-center mb-4 mt-4">
                <div class="col-6">
                    <button type="submit" class="btn btn-primary">Submit Report to the CAAC</button>
                </div>
                <div class="col-6">
                    <button type="reset" class="btn btn-warning">Clear Form</button>
                </div>
            </div>
        </form>
                
            </div>
        </div>
    </div>
</div>
#include("bottom.html")

<script src="js/popper.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script>

    $('#cfile').fileupload({
		dropZone: $('#uploader'),
		url: '#(CPATH)/commons/attachment/upload',
		sequentialUploads: true,
		progressall: function (e, data) {
			var progress = parseInt(data.loaded / data.total * 100, 10);
			$(".myPanel").text("上传进度：" + progress + "%")
		},
		done: function (e, data) {

			$(".myPanel").text("或者拖动文件到这里进行上传...");

			if(data.result.state == "ok"){
				$("#attachment").val(data.result.src);
				alert("文件上传成功...");
				$("#attachments-a").show();
				$("#attachments-a").attr("href",data.result.src);
				
			}else {
				alert(data.result.message)
			}
		}
	});
	
    $("#attachments-a").hide()

    /*
     * 提交数据
     */
    function submitdata(){


        ///校验
        if($("#attachment").val()==""){
            alert("Please select a file");
            return false;
        }


        var url = "/securityInformationSrd/submit";

        var arr = new Array();
        arr[0] = $("#飞机-3").val()+","+$("#飞机制造厂家-3").val()+","+$("#飞机型号-3").val()+","+$("#飞机序列号-3").val()+","+$("#飞机总时间-3").val()+","+$("#飞机总循环-3").val()
        arr[1] = $("#发动机-3").val()+","+$("#发动机制造厂家-3").val()+","+$("#发动机型号-3").val()+","+$("#发动机序列号-3").val()+","+$("#发动机总时间-3").val()+","+$("#发动机总循环-3").val()
        arr[2] = $("#螺旋桨-3").val()+","+$("#螺旋桨制造厂家-3").val()+","+$("#螺旋桨型号-3").val()+","+$("#螺旋桨序列号-3").val()+","+$("#螺旋桨总时间-3").val()+","+$("#螺旋桨总循环-3").val()

        var data = {
            
            "srd.report_no":$("#单号").val(),
            "srd.date_occurrence":$("#故障失效缺陷发生日期-1").val(),//故障/失效/缺陷发生日期1
            "srd.registration_number":$("#注册号-1").val(),//注册号1
            "srd.submitted_type":$("#提交者类型-1").val(),//提交者类型1
            "srd.name_operator":$("#运营人名称-2").val(),//运营人名称2
            "srd.type_operator":$("#运营人类型-2").val(),
            "srd.jasc_ata_code":$("#JASCATA代码-2").val(),
            "srd.occurrence_stage":$("#发生阶段-2").val(),
            "srd.discovery_way":$("#发现途径-2").val(),
            "srd.phenomenon":$("#现象-2").val()+","+$("#现象1-2").val()+","+$("#现象2-2").val(),
            "srd.preventive_measure":$("#预防措施-2").val()+","+$("#预防措施1-2").val()+","+$("#预防措施2-2").val()+","+$("#预防措施3-2").val(),
            "srd.flight_number":$("#航班号-2").val(),
            "srdds":arr,
            "srd.problem_description":$("#问题描述-4").val(),
            "srd.part_name":$("#零件名称-5").val(),
            "srd.name_manufacturer":$("#生产厂家名称-5").val(),
            "srd.part_number":$("#件号-5").val(),
            "srd.serial_number":$("#序列号-5").val(),
            "srd.parts_status":$("#零件状况-5").val(),
            "srd.defect_location_parts":$("#零件缺陷位置-5").val()+","+$("#零件缺陷位置或者-5").val(),
            "srd.total_time":$("#总时间-5").val(),
            "srd.total_cycle_number":$("#总循环数-5").val(),
            "srd.total_overhaul_time":$("#自大修修理检查总时间-5").val(),
            "srd.part_name_6":$("#部件名称-6").val(),
            "srd.name_manufacturer_6":$("#生产厂家名称-6").val(),
            "srd.part_number_6":$("#件号-6").val(),
            "srd.serial_number_6":$("#序列号-6").val(),
            "srd.model_6":$("#型号-6").val(),
            "srd.position_6":$("#位置-6").val(),
            "srd.total_time_6":$("#总时间-6").val(),
            "srd.total_cycle_number_6":$("#总循环数-6").val(),
            "srd.total_overhaul_repair_inspection_time_6":$("#自大修修理检查总时间-6").val(),
            "srd.name":$("#姓名-7").val(),
            "srd.phone":$("#电话-7").val(),
            "srd.email":$("#电子邮箱-7").val(),
            "srd.type_5":$("input[name='ta']:checked").val(),
            "srd.type_6":$("input[name='tb']:checked").val(),
            "srd.enclosure_url":$("#attachment").val(),
            "srd.language":"英文",
            "srd.difficulty_place":$("#困难的地方").val()
            
        }
        
        
        // for(var key in data){
        // 　var val = data[key];
        // 　if(val==""||val==undefined||val==",,"||val==",,,"){
        // 　  console.log(key);
        // 　  alert("列表数据有空!");  
        // 　  return;    
        // 　}
        　
        // }
        
        $.post(url,data,function(e){

            if(e.state == "ok"){
                alert("Submitted successfully!");
            }else{
                alert(e.msg);
                
            }

        });
        
        
        return false;

    }

</script>
<script>

    function txtnum(t,id){
        var z = $(t).val();
        $('#'+id).html(z.length);
    }

</script>
<script>
	$(function () { $("[data-toggle='tooltip']").tooltip(); });
</script>
<script>
layui.use('laydate', function(){
  var laydate = layui.laydate;
  //执行一个laydate实例
  laydate.render({
    elem: '#故障失效缺陷发生日期-1' //指定元素
    ,lang: 'en'
  });
});
</script>
<script>
    
    var url = "/templates/ChinaAirlines/json/JASCATA.json";
    $.get(url, function (e){
        new Vue({
          el: '#JASCATA代码-2',
          data: {"list":e}
        })
    });

</script>
</body>
</html>